import user_logout from '@dfeidao/atom-nodejs/msg/user-logout';
import { systemid } from '../../atom/config';

interface Message {
	usercode: string;
}
interface IWebResult {
	data: unknown;
	cookie?: {
		[name: string]: string;
	} | null;
	content_type?: string;
	headers?: {
		[key: string]: string[];
	};
	attachment?: string;
	redirect?: string;
	status_code?: number;
}
export default async function atom(msg: Message, action_id: string, session_id: string) {

	const res = await user_logout(action_id, session_id, systemid, msg.usercode);
	return { data: { res } } as IWebResult;
}
